package com.tencreat.service.mall;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.mall.MallMessageRecord;

import java.util.List;

/**
 * 消息记录Service接口
 *
 * @author tencreat
 * @date 2021-11-24
 */
public interface IMallMessageRecordService  extends IService<MallMessageRecord> {
    /**
     * 查询消息记录
     *
     * @param id 消息记录ID
     * @return 消息记录
     */
    public MallMessageRecord selectMallMessageRecordById(ReqIdParam id);

    /**
     * 查询消息记录列表
     *
     * @param mallMessageRecord 消息记录
     * @return 消息记录集合
     */
    public List<MallMessageRecord> selectMallMessageRecordList(MallMessageRecord mallMessageRecord);

    /**
     * 新增消息记录
     *
     * @param mallMessageRecord 消息记录
     * @return 结果
     */
    public int insertMallMessageRecord(MallMessageRecord mallMessageRecord);

    /**
     * 修改消息记录
     *
     * @param mallMessageRecord 消息记录
     * @return 结果
     */
    public int updateMallMessageRecord(MallMessageRecord mallMessageRecord);

    /**
     * 批量删除消息记录
     *
     * @param ids 需要删除的消息记录ID
     * @return 结果
     */
    public int deleteMallMessageRecordByIds(ReqIdsParam ids);

    /**
     * 删除消息记录信息
     *
     * @param id 消息记录ID
     * @return 结果
     */
    public int deleteMallMessageRecordById(ReqIdParam id);
}
